package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 省
 *
 * @author 梁云亮
 */
@ApiModel(value = "Domain:Province")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_province")
public class Province implements Serializable {
    private static final long serialVersionUID = 178138944411283877L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 省名
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "省名")
    private String name;

    /**
     * 编码：对应身份证前2位
     */
    @TableField(value = "code")
    @ApiModelProperty(value = "编码：对应身份证前2位")
    private String code;

}
